
package Cart;

import DTO.Category;
import DTO.Item;
import java.util.List;

/**
 * this interface defines search service functionalities 
 * @author tejinder
 * @see Cart
 */
public interface ISearchManager {

    /**
     * this method process search request for all categories.
     * @return
     */
     public List<Category> getCategories();

     /**
      * This method processes request for search for an item by a criteria
      * like name, make, model and description
      * @param keyword
      * @param criteria
      * @return
      */
     public List<Item> searchBykeyWord(String keyword, String criteria);

     /**
      * This method processes search request based on a category id.
      * @param ctid
      * @return
      */
     public List<Item> searchByCategory(Integer ctid);

    


}
